﻿using Shop.RemoteModel.Shop;
using Shop.RemoteModel.Shop.Model;
using Shop.Service.Interface;
using WeDonekRpc.Client.Interface;

namespace Shop.Service.RpcEvent
{
    internal class ShopEvent : IRpcApiService
    {
        private readonly IShopService _Service;

        public ShopEvent (IShopService service)
        {
            this._Service = service;
        }
        public bool SetShop (SetShop obj)
        {
            return this._Service.Set(obj.Id, obj.Datum);
        }
        public ShopDatum GetShop (GetShop obj)
        {
            return this._Service.Get(obj.Id);
        }
        public long ShopLogin (ShopLogin obj)
        {
            return this._Service.ShopLogin(obj.CompanyId);
        }
    }
}
